class Dog{
    public String name;
    public int age;
    public void barks(){
        System.out.println(name+"汪汪汪"+age);
    }
    public void wag(){
        System.out.println(name+"摇尾巴"+age);
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.age=10;
        dog.name="小黄";
        dog.wag();
        dog.barks();
    }
}
